<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="../js/Calendar.js" language="javascript"></script>
<title>详细资料</title>
<style type="text/css">
body {
	margin:0px;
}
.list_content {
	background-color: #fff;
	color:#73938E;
	font-size:12px;
	line-height:15px;
	text-align:center;
}
.list_top_title {
	font-size:12px;
	background-color: #F3F8F7;
	color:#73938E;
	font-weight:bold;
	line-height:30px;
	text-align:center;
	border-top-style: none;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: none;
}
.fontRed{
	color:#FF0000;
}
</style>
</head>

<body>
<?php
 session_start();

 include("../main/function.php");
 include("../main/ShowPage.class.php");
 include("../main/islogin.php");
 $db=new Db();
 $id=$_GET['action'];
 $sql="select * from teacher where id='$id'";
 $detailsInfo=$db->fetchRow($sql); 
 
 ?>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
  <TR height=28 >
    <TD background=../images/title_bg1.jpg>-->当前位置:教师信息维护</TD>
</TR>
<tr>
<td>&nbsp;</td>
</tr>
</TABLE>
 <form action="update.php?action=edit" method="post" enctype="multipart/form-data" onsubmit="return checkform();">
 <table width="95%"  border="0" align="center"  cellpadding="3" cellspacing="1" class="table_style">
	  <tr>
		<td colspan="7" align="center" class="list_top_title">修改教师信息(<span class="fontRed">*</span>号位必填项)</td>
	  </tr>
	  <tr>
		<td width="9%" class="list_top_title">姓名：</td>
		<td width="29%" >
			<input type="hidden" name="id" value="<?php echo $detailsInfo[id]; ?>" />
			<input type="text" name="name" id="name" value="<?php echo $detailsInfo[name]; ?>" />
	    <span class="fontRed">*</span></td>
	    <td width="12%" class="list_top_title">性别：</span></td>
	    <td colspan="3" ><span class="fontRed" >
	      <select name="sex" id="sex"  >
         	 <?php 
		  		echo "<option value='男' ".(($detailsInfo[sex]=='男')?'selected':' ')." > 男</option>  ";
				echo "<option value='女' ".(($detailsInfo[sex]=='女')?'selected':' ')." > 女</option> ";				
			?>
			</select>
	    </span></td>
	    <td width="15%" rowspan="5"  valign="top" align="center">
		<?php	 
			if($detailsInfo[photo]!='') { echo "<img src=../images/photo/"."$detailsInfo[photo]"." align=middle width=130px height=160px >"; }
			else { echo "<img src=../images/photo/default.png  align=middle width=160px height=180px >";} 
		?>
		&nbsp;</td>
	  </tr>
	  <tr>
		<td class="list_top_title">出生日期：</td>
		<td><input type="text" name="birth" id="birth" onclick="new Calendar().show(this);" readonly="readonly" value="<?php echo "$detailsInfo[birth]"; ?>" />
          <span class="fontRed">*</span></td>
	    <td class="list_top_title">政治面貌：</span></td>
	    <td colspan="3"><span class="fontRed">
	      <select name="partisan" id="partisan">
	        <?php
		  		echo "<option value='群众' ".(($detailsInfo[partisan]=='群众')?'selected':' ')." > 群众</option>  ";
				echo "<option value='党员' ".(($detailsInfo[partisan]=='党员')?'selected':' ')." > 党员</option>  ";
				echo "<option value='预备党员' ".(($detailsInfo[partisan]=='预备党员')?'selected':' ')." > 预备党员</option>  ";
				echo "<option value='团员' ".(($detailsInfo[partisan]=='团员')?'selected':' ')." > 团员</option>  ";
				echo "<option value='其他民主党派' ".(($detailsInfo[partisan]=='其他民主党派')?'selected':' ')." > 其他民主党派</option>  ";
			?>
        </select>
	    </span></td>
      </tr>
	  <tr>
	    <td class="list_top_title">所在院系：</td>
	    <td><span class="fontRed">
	      <select name="area" id="area" >
     		<?php
				echo "<option value='100' ".(($detailsInfo[area]=='100')?'selected':' ')." > 机械与汽车工程学院</option>  ";
				echo "<option value='101' ".(($detailsInfo[area]=='101')?'selected':' ')." > 计算机与信息工程学院</option>  ";
				echo "<option value='102' ".(($detailsInfo[area]=='102')?'selected':' ')." > 电子与电气工程学院</option>  ";
				echo "<option value='103' ".(($detailsInfo[area]=='103')?'selected':' ')." > 土木工程学院</option>  ";
				echo "<option value='104' ".(($detailsInfo[area]=='104')?'selected':' ')." > 建筑与城市规划学院</option>  ";
				echo "<option value='105' ".(($detailsInfo[area]=='105')?'selected':' ')." > 艺术设计学院</option>  ";
				echo "<option value='106' ".(($detailsInfo[area]=='106')?'selected':' ')." > 经济与管理学院</option>  ";
				echo "<option value='107' ".(($detailsInfo[area]=='107')?'selected':' ')." > 外国语学院</option>  ";
				echo "<option value='108' ".(($detailsInfo[area]=='108')?'selected':' ')." > 数理学院</option>  ";
				echo "<option value='109' ".(($detailsInfo[area]=='109')?'selected':' ')." > 音乐学院</option>  ";
				echo "<option value='110' ".(($detailsInfo[area]=='110')?'selected':' ')." > 文法学院</option>  ";
				echo "<option value='111' ".(($detailsInfo[area]=='111')?'selected':' ')." > 生物与化学工程学院</option>  ";
				echo "<option value='112' ".(($detailsInfo[area]=='112')?'selected':' ')." > 张仲景国医学院</option>  ";
				echo "<option value='113' ".(($detailsInfo[area]=='113')?'selected':' ')." > 软件学院</option>  ";
				echo "<option value='114' ".(($detailsInfo[area]=='114')?'selected':' ')." > 国际教育学院</option>  ";
				echo "<option value='115' ".(($detailsInfo[area]=='115')?'selected':' ')." > 教育学院</option>  ";
				echo "<option value='116' ".(($detailsInfo[area]=='116')?'selected':' ')." > 成人教育学院</option>  ";
				echo "<option value='117' ".(($detailsInfo[area]=='117')?'selected':' ')." > 体育教学部</option>  ";
				echo "<option value='118' ".(($detailsInfo[area]=='118')?'selected':' ')." > 政治理论教学部</option>  ";
			?> 
          </select>
	    </span></td>
        <td class="list_top_title">民族：</span></td>
        <td colspan="3"><span class="fontRed">
 			<input type="text" name="family" id="family" value="<?php echo $detailsInfo[family]; ?>" />
        </span></td>
      </tr>
	  <tr>
	    <td class="list_top_title">手机：</td>
	    <td><input type="text" name="phone" id="phone" value="<?php echo $detailsInfo[phone]; ?>"" />
          <span class="fontRed">*</span></td>
        <td class="list_top_title">固话：</span></td>
        <td colspan="3"><input type="text" name="tel" id="tel" value="<?php echo $detailsInfo[tel]; ?>"" />          </td>
      </tr>      
	  <tr>
         <td class="list_top_title">电子邮箱：</td>
	    <td><input type="text" name="email" id="email" value="<?php echo $detailsInfo[email]; ?>"" />
          <span class="fontRed">*</span></td>
        <td class="list_top_title">学历：</span></td>
        <td colspan="3">
        <span class="fontRed">
          <select name="education" id="education">
          <?php
			echo "<option value='1' ".(($detailsInfo[education]=='1')?'selected':' ')." > 高中（职高、高技）</option>  ";
			echo "<option value='2' ".(($detailsInfo[education]=='2')?'selected':' ')." > 中专</option>  ";
			echo "<option value='3' ".(($detailsInfo[education]=='3')?'selected':' ')." > 大专</option>  ";
			echo "<option value='4' ".(($detailsInfo[education]=='4')?'selected':' ')." > 本科</option>  ";
			echo "<option value='5' ".(($detailsInfo[education]=='5')?'selected':' ')." > 博士</option>  ";
			echo "<option value='6' ".(($detailsInfo[education]=='6')?'selected':' ')." > 硕士</option>  ";
			echo "<option value='7' ".(($detailsInfo[education]=='7')?'selected':' ')." > 初中</option>  ";
			echo "<option value='8' ".(($detailsInfo[education]=='8')?'selected':' ')." > 其他</option>  ";  
		  ?> 
          </select>         
        </span> </td>
      </tr>
	  <tr>
	    <td class="list_top_title">学位：</td>
	    <td><span class="fontRed">
	      <select name="degree" id="degree">
	 		<?php 
				echo "<option value='1' ".(($detailsInfo[degree]=='1')?'selected':' ')." > 学士学位</option>  "; 
				echo "<option value='2' ".(($detailsInfo[degree]=='2')?'selected':' ')." > 博士学位</option>  ";
				echo "<option value='3' ".(($detailsInfo[degree]=='3')?'selected':' ')." > 硕士学位</option>  ";
			?>
          </select>
        </span></td>
        <td class="list_top_title">毕业时间：</span></td>
        <td colspan="3">
        	<input type="text" name="graduation_time" id="graduation_time" onclick="new Calendar().show(this);" readonly="readonly" value="<?php echo $detailsInfo[graduation_time]; ?>" />
        </td>
	    <td class="list_top_title">
        	<input type="file"  name="photo" id="photo" style="width:72px;"  title="更换照片" /><input name="oldphoto" id="oldphoto" type="hidden" value="<?php echo $detailsInfo[photo]; ?>" />&nbsp;
         </td>
	  </tr>
	  <tr>
	    <td class="list_top_title">毕业院校：</td>
	    <td>
	      <input type="text" name="graduation_school" id="graduation_school" value="<?php echo $detailsInfo[graduation_school]; ?>" />
         </td>
        <td class="list_top_title">参加工作时间：</span></td>
        <td colspan="2"><input type="text" name="work_time" id="work_time" onclick="new Calendar().show(this);" readonly="readonly" value="<?php echo $detailsInfo[work_time]; ?>" />
          </td> 
      </tr>
	  <tr>
	    <td class="list_top_title">身份证：</td>
	    <td><span class="fontRed">
	      <input type="text" name="idcard" id="idcard" value="<?php echo $detailsInfo[idcard]; ?>" />
	    </span></td>
        <td class="list_top_title">职务：</td>
        <td >
        <select name="post" id="post">
          <?php
			echo "<option value='1' ".(($detailsInfo[post]=='1')?'selected':' ')." >备课组组长</option>  ";
			echo "<option value='2' ".(($detailsInfo[post]=='2')?'selected':' ')." > 教研主任</option>  ";
			echo "<option value='3' ".(($detailsInfo[post]=='3')?'selected':' ')." > 年级组长</option>  ";
			echo "<option value='4' ".(($detailsInfo[post]=='4')?'selected':' ')." > 教务主任</option>  ";
			echo "<option value='5' ".(($detailsInfo[post]=='5')?'selected':' ')." > 政教主任</option>  ";
			echo "<option value='6' ".(($detailsInfo[post]=='6')?'selected':' ')." > 团委书记</option>  ";
			echo "<option value='7' ".(($detailsInfo[post]=='7')?'selected':' ')." > 教科研主任</option>  ";
			echo "<option value='8' ".(($detailsInfo[post]=='8')?'selected':' ')." > 学管处主任</option>  ";
			echo "<option value='9' ".(($detailsInfo[post]=='9')?'selected':' ')." > 后勤</option>  ";
			echo "<option value='10' ".(($detailsInfo[post]=='10')?'selected':' ')." > 副校长</option>  ";
			echo "<option value='11' ".(($detailsInfo[post]=='11')?'selected':' ')." > 校长</option>  ";
			echo "<option value='12' ".(($detailsInfo[post]=='12')?'selected':' ')." > 教师</option>  ";    
		  ?> 
    </select>
          </td>
	  </tr>
	  <tr>
	    <td class="list_top_title">职称：</span></td>
	    <td>
	      <select name="title" id="title">
	 		<?php 
				echo "<option value='初级' ".(($detailsInfo[title]=='1')?'selected':' ')." > 初级</option>  "; 
				echo "<option value='中级' ".(($detailsInfo[title]=='2')?'selected':' ')." > 中级</option>  ";
				echo "<option value='高级' ".(($detailsInfo[title]=='3')?'selected':' ')." > 高级</option>  ";
			?>
        </select>
        </td>
        <td class="list_top_title">评定时间：</td>
        <td colspan="4">
        <input type="text" name="title_time" id="title_time" onclick="new Calendar().show(this);" value="<?php echo $detailsInfo[title_time]; ?>" />
        </td>
	  </tr>
	  
	  <tr>
	    <td class="list_top_title">培训经历：</td>
	    <td><textarea name="train" cols="28" rows="5"><?php echo $detailsInfo[train]; ?></textarea></td>
        <td class="list_top_title"><span class="list_top_title">获奖情况：</span></td>
        <td colspan="4"><textarea name="award" cols="40" rows="5"><?php echo $detailsInfo[award]; ?></textarea></td>
	  </tr>
	  <tr>
		<td class="list_top_title">备注：</td>
		<td colspan="6"><textarea name="mem" cols="110" rows="5"><?php echo $detailsInfo[mem]; ?></textarea></td>
	  </tr>
	  <tr>
		<td colspan="7" class="list_top_title"><input  class="inputButton" type="submit" name="submit" value="保存" />
	    <input type="reset" name="button" id="button" value="返回"  onclick="history.back();"/></td>
	  </tr>
	</table>
</form>
  </div>
</body>
</html>
